<?php
namespace app\common\customer\validate;


use app\common\system\logic\FormLogic;
use think\Validate;

class CustomerInviteValidate extends Validate
{
    protected $rule = [
        'id' => ['require', 'gt:0'],
        'brand_id' => ['require', 'gt:0'],
        'member_id' => ['require', 'gt:0'],
        'store_id' => ['require', 'gt:0'],
        'invite_time' => 'require',
        'visit_time' => 'require',
        'status' => 'require',
    ];

    protected $message = [
        'id.require' => '参数错误',
        'id.gt' => '客资参数错误',
        'brand_id.require' => '参数错误',
        'brand_id.gt' => '品牌参数错误',
        'member_id.require' => 'member_id参数错误',
        'member_id.gt' => 'member_id参数错误',
        'store_id.require' => '请选择门店',
        'store_id.gt' => '门店参数错误',
        'invite_time.require' => '请选择邀约时间',
        'visit_time.require' => '请选择到店时间',
        'status.require' => '请选择到店状态',
    ];

    protected $scene = [
        'create' => ['member_id', 'store_id', 'invite_time'],
        'edit' => ['id', 'status'],
    ];
}